package com.jixu.streetapp.utils;

import com.alibaba.excel.EasyExcel;
import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.alibaba.excel.read.builder.ExcelReaderBuilder;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.jixu.streetapp.entity.Street;
import lombok.extern.slf4j.Slf4j;
import net.bytebuddy.asm.Advice;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.web.multipart.MultipartFile;

import java.io.*;
import java.util.List;

/**
 * ClassName：EasyExcel
 * Package:IntelliJ IDEA
 *
 * @Author:Jixu
 * @Create:2023/2/20-21:54
 */
@Slf4j
public class EasyExcelUtils {


    public static List<Street> readExcel(MultipartFile file) throws IOException {
        // 输出流
        InputStream excelFile = file.getInputStream();
        EasyExcel.read("工作簿2.xlsx", Street.class, new StreetListener());
        return null;
    }

}
